home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Text / NamingTableAccess / NamingTable-ReadMe next >
Encoding:
Text File  |  1992-07-15  |  1.1 KB  |  24 lines  |  [TEXT/ttxt]

  1. NamingTableAccess - 
  2. a Pascal Unit, and a small application demonstrating its usage. Helps dig out the contents of the NamingTable in a TrueType 'sfnt'
  3. (see "The TrueType™ Font Format Specification Version 1.0", APDA M0825LL/A, p. 232).
  4.  
  5. Access to tables contained in a 'sfnt' has been coded along the lines suggested by Mike Reed (see  d e v e l o p  n° 8, "Curves ahead").
  6.  
  7. The demo application calls the NamingTableLookup function in the following way:
  8.  
  9.   index := 0;
  10.   REPEAT  { loop through all available strings: "index" keeps track of the last request }
  11.     platformID := 1;  { sorry - no Microsoft Windows here! }
  12.     encodingID := gEncoding;       { gEncoding, gLangage, gContent ... }
  13.     languageID := gLanguage;      {... correspond to the menu selections ... )
  14.     nameID := gContent;             { ... within the demo application. }
  15.     s := NamingTableLookup(sfnt, platformID, encodingID, languageID, nameID, index);
  16.     IF s <> '' THEN
  17.      BEGIN
  18.        { insert the string s into the display }
  19.      END;
  20.   UNTIL s = '';
  21.  
  22. Please, send comments, bug reports, suggestions and gifts to:
  23. Joseph Maurer, Macintosh Developer Technical Support
  24. AppleLink VELOCIO.